#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	FILE* pf = fopen("data4.txt", "rb");
	if (pf == NULL)
	{
		perror("fopen");
	}
	char arr2[20] = { 0 };
	// char arr1[20] = "abcdedafa";
	//fwrite(arr1, 1, 20, pf);
	fread(arr2, 1, 20, pf);
	printf("%s", arr2);
	fclose(pf);
	pf = NULL;
	return 0;
}